package com.ruoyi.business.vo;

import com.ruoyi.business.domain.Rack;
import com.ruoyi.business.domain.RackParam;
import lombok.Data;

import java.util.List;

/**
 * 设备参数详情 VO
 * 用于首页获取台架详情
 *
 * @author qiancheng
 * @date 2025-06-16
 */
@Data
public class RackParamByIdVo {

    /** 台架名称 */
    String name;

    /** 台架用途 */
    String purpose;

    /**
     * 台架参数List
     */
    List<RackParam> rackParamList;

    public RackParamByIdVo(Rack rackById, List<RackParam> paramList) {
        this.name = rackById.getName();
        this.purpose = rackById.getPurpose();
        this.rackParamList = paramList;
    }
}